package com.ge.modules.api.service.impl;

import com.ge.modules.api.service.TbPostReadService;
import com.ge.modules.dao.TbPostReadDao;
import com.ge.modules.entity.TbPostReadEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbPostReadServiceImpl implements TbPostReadService {
	@Autowired
	private TbPostReadDao postReadDao;
	
	@Override
	public TbPostReadEntity queryObject(Integer id){
		return postReadDao.queryObject(id);
	}

	@Override
	public TbPostReadEntity queryByObject(TbPostReadEntity tbPostReadEntity) {
		return postReadDao.queryByObject(tbPostReadEntity);
	}

	@Override
	public List<TbPostReadEntity> queryList(Map<String, Object> map){
		return postReadDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return postReadDao.queryTotal(map);
	}
	
	@Override
	public void save(TbPostReadEntity postRead){
		postReadDao.save(postRead);
	}
	
	@Override
	public void update(TbPostReadEntity postRead){
		postReadDao.update(postRead);
	}
	
	@Override
	public void delete(Integer id){
		postReadDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		postReadDao.deleteBatch(ids);
	}
	
}
